Try/Catch Cost In a Loop
JavaScript performance comparison
Preparation code
<script>
Benchmark.prototype.setup = function() {
var obj = { a : 1, b : 2, c : 3, d : 4, e : 5 };
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
Test | Ops/sec | |
---|---|---|
Iteration with internal try/catch
|
|
pending… |
Vanilla iteration
|
|
pending… |
Compare results of other browsers
Revisions
You can edit these tests or add even more tests to this page by appending /edit
to the URL.
- Revision 1: published Jackson Gabbard
- Revision 2: published
- Revision 4: published
- Revision 5: published
- Revision 6: published
- Revision 7: published
- Revision 8: published Seth Holladay
- Revision 9: published Seth Holladay
- Revision 10: published Evan
- Revision 12: published Yohan Siguret
- Revision 13: published
- Revision 14: published
0 Comments